<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
<?php
	if(isset($this->carabiner)){
		$this->carabiner->display('css');
		$this->carabiner->display('js');
	}
?>
<script type="text/javascript">
	$(function(){
		var obj = $("#imgm");
		var h = 100 * $(document).width() / parseFloat(obj.attr('data-width'));

		obj.height(h+'%');
	});
</script>
</head>
<body>
<?php 

list($width, $height, $type, $attr) = getimagesize($this->input->get('url'));
$width = $width==0? 1: $width;
?>
	<img id="imgm" src="<?php echo base_url($this->input->get('url')); ?>" width="100%" height="128.9%" data-width="<?php echo $width ?>">
</body>
</html>